export const baseSize = 37.5; // 设计稿宽度的1/10

export default function setRem() {
  const scale = window.screen.width / 375; // 设计稿宽度
  document.documentElement.style.fontSize = baseSize * Math.min(scale, 2) + 'px';
}
